//
//  NumberGroup.m
//  tableView
//
//  Created by dally with god on 16/11/15.
//  Copyright © 2016年 1512. All rights reserved.
//

#import "NumberGroup.h"

@implementation NumberGroup

+(instancetype) numberGroup {
    NumberGroup *numberGroup = [[NumberGroup alloc ]init];
  
  //  for (int i=0 ;i<4 ;i++) {
   //     NumberGroup *numberGroup = [NumberGroup numberGroup ];
   //     [_dataList addObject:numberGroup];

    //设置数据
    numberGroup.gourpHeader = [NSString stringWithFormat:@"Header:%d",arc4random_uniform(10000)];
    numberGroup.gourpFooter = [NSString stringWithFormat:@"Footer:%d",arc4random_uniform(10000)];
   numberGroup.gourpIndex = [NSString stringWithFormat:@"%d",arc4random_uniform(10)];
    
    NSMutableArray *tempArray = [NSMutableArray array];
    for (int i=0;i<10;i++) {
        NSString *number = [NSString stringWithFormat:@"cell:%d",arc4random_uniform(1000000)];
        [tempArray addObject:number];
    }
    numberGroup.groupNumbers = tempArray;
    
    return numberGroup;
}


@end
